{{useCss "/app-pages/css/pc/action.scss"}}
<div class="banner"></div>
<div class="modulebox">
    <href to="/action.html" class="module" style="background-color: #f47920">所有</href>
    {{#each $Cache.action.section_list}}
    <href to="/action.html?section_id={{_id}}&article_id={{$Top.$Cache.action._current_article_id}}" class="module" style="background-color: {{bg}}">{{name}}</href>
    {{/each}}
</div>
<div class="box">
    <div class="list {{$Cache.action.mobile.show_list&&'focus'}}">
        <div class="icon-lastfm" event-click="{{'$Event.action.mobile.show_list'}}"></div>
        {{#if $Cache.action.article_list.data.length}} {{#each $Cache.action.article_list.data}}
        <href event-click="{{'$Top.$Event.action.mobile.show_list'}}" to="/action.html?section_id={{$Top.$Cache.action._current_section_id}}&article_id={{_id}}" class="article">{{title}}</href>
        {{/each}} {{#else}}
        <href class="article">此目录下没有文章</href>
        {{/if}}
    </div>
    <div class="detail">
        <div class="title">{{$Cache.action.article.detail.title}}</div>
        <div class="author">
            <div class="item">作者：{{$Cache.action.article.detail.author}}</div>
            <div class="item">
                {{#Time $Cache.action.article.detail,"YYYY-MM-DD hh:mm:ss"}}
            </div>
        </div>
        {{#if $Cache.action.article.detail.imgurl}}
        <div class="img">
            <img bind-src="{{$Cache.action.article.detail.imgurl}}" />
        </div>
        {{/if}}
        <div class="content">{{HTML $Cache.action.article.detail.html}}</div>
    </div>
</div>
